package com.lepu.app.fun.tool.bbwy.bean;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

public class BeanToolBbwyNaiFen {

	public String BrandID;//	品牌ID 	string	N	ListInfo
	public String BrandName;//	品牌名称	string	N	ListInfo

	public static ArrayList<BeanToolBbwyNaiFen> parseListInfo(String dataString) {
		String result = "";
		try {
			JSONObject jsonObject = new JSONObject(dataString);
			JSONObject obj1 = (JSONObject) jsonObject.get("Result");
			JSONArray jsonArray = obj1.getJSONArray("ListInfo");

			result = jsonArray.toString();
		} catch (JSONException e) {
			e.printStackTrace();
		}

		Gson gson = new Gson();
		ArrayList<BeanToolBbwyNaiFen> dataList = gson.fromJson(result,
				new TypeToken<List<BeanToolBbwyNaiFen>>() {
				}.getType());
		return dataList;
	}



}
